﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ELR</title>
    <link rel="stylesheet" type="text/css" href="styles/login.css" />
    <script type="text/javascript" src="Scripts/jquery/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="Scripts/closure/closure-library/closure/goog/base.js"></script>
    <script type="text/javascript" src="scripts/imc.ui.Login.js"></script>
    <script type="text/javascript">
        function getCookie(c_name)
        {
            var i,x,y,ARRcookies=document.cookie.split(";");
            for (i=0;i<ARRcookies.length;i++)
            {
                x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
                y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
                x=x.replace(/^\s+|\s+$/g,"");
                if (x==c_name)
                {
                    return unescape(y);
                }
            }
        }
        function setCookie(c_name,value,exdays)
        {
            var exdate=new Date();
            exdate.setDate(exdate.getDate() + exdays);
            var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
            document.cookie=c_name + "=" + c_value;
        }
        function checkCookie()
        {
            var username=getCookie("username");
            if (username!=null && username!="")
            {
                window.location.href = "index.html";
            }
        }
    </script>
    <script type="text/javascript">
        checkCookie();
    </script>
</head>
<body>
<div style="padding: 100px 0 0 250px;">
    <div id="login-box">
        <H2>Iniciar sesión</H2>
        ELR Tracking WEB
        <br />
        <br/>
        <div class="validateUser"><label class="validarUsuario"></label></div>
        <div id="login-box-name" style="margin-top:20px;">Email:</div><div id="login-box-field" style="margin-top:20px;"><input id="mailInicio" name="q" class="form-login" title="Username" value="" size="30" maxlength="2048" /></div>
        <div id="login-box-name">Password:</div><div id="login-box-field"><input id="passwordInicio" name="q" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" /></div>
        <br />
        <span class="login-box-options"><input type="checkbox" name="1" value="1"> Recordar mis datos  <a href="enviarPassword.html" style="margin-left:30px;">¿Olvidaste tu contraseña?</a></span>
        <br />
        <br />
        <br />
        <img id="iniciarSesion" src="images/login-btn.png" width="103" height="42" />
    </div>
</div>

<script type="text/javascript">
    var login = new imc.ui.Login();
</script>
</body>
</html>
